<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>设置考试时间</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
</head>
<body>
    <div class="container mt-5">
        <h1 class="text-center">设置考试时间</h1>
        <form method="POST" action="{{ url_for('set_exam_time', username=username) }}">
            <div class="form-group">
                <label for="exam_name">考试名称:</label>
                <input type="text" id="exam_name" name="exam_name" class="form-control" required>
            </div>
            <div class="form-group">
                <label for="class_name">选择班级:</label>
                <select id="class_name" name="class_name" class="form-control" required>
                    {% for class_name in classes %}
                        <option value="{{ class_name }}">{{ class_name }}</option>
                    {% endfor %}
                </select>
            </div>
            <div class="form-group">
                <label for="exam_duration">考试时长 (分钟):</label>
                <input type="number" id="exam_duration" name="exam_duration" class="form-control" required>
            </div>
            <button type="submit" class="btn btn-primary w-100">设置考试时间</button>
        </form>
    </div>
</body>
</html>
